<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
    <title>TAM - Task Assignment Manager</title>
    <style type="text/css">

        BODY * {
            color: #333333;
            font-family: Arial, Verdana, sans-serif;
        }

        .ui-button {
            height: 26px;
            background: #ff0000 url("resources/css/skin/ui-bg_flat_100_ff0000_40x100.png") 50% 50% repeat-x !important;
            color: #ffffff !important;
        }
    </style>

    <link rel="stylesheet" href="resources/css/skin/skin.css" type="text/css">

</head>
<body onload='document.f.j_username.focus();'>

<form name='f' action='j_spring_security_check' method='POST'>

    <div style="margin-left:-450px;position:absolute;left:50%;width:900px;height:450px;margin-top:100px;">

        <div style="border:1px solid #aaaaaa; padding:15px;width:240px;margin-left:-120px;position:absolute;left:50%;margin-top:50px;">

            <table style="font-weight:bold;">
                <tr>
                    <td>Username</td>
                    <td><input type="text" style="width:150px;margin-left:5px;" name='j_username'></td>
                </tr>
                <tr>
                    <td>Password</td>
                    <td><input type="password" style="width:150px;margin-left:5px;" name='j_password'></td>
                </tr>
            </table>
            <div style="color:red;font-weight:bold;padding:3px;">
                <%
                    String param = request.getParameter("error");
                    if ((param != null) && (param.equals("usernotfound"))) {
                        out.println("User not found!");
                    }
                    if ((param != null) && (param.equals("userdisabled"))) {
                        out.println("User disabled!");
                    } else {
                        out.println("&nbsp;");
                    }
                %>
            </div>
            <table style="width:240px;" cellspacing="10">
                <tr>
                    <td align="right">
                        <div style="border:1px solid #aaaaaa;width:70px;border-radius: 3px 3px 3px 3px;">
                            <input type="submit"
                                   class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
                                   style="width:70px;border:none;" name="submit" value="Login">
                        </div>
                    </td>
                    <td align="left">
                        <div style="border:1px solid #aaaaaa;width:70px;border-radius: 3px 3px 3px 3px;">
                            <input type="reset"
                                   class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
                                   style="width:70px;border:none;" name="reset" value="Reset">
                        </div>
                    </td>
                </tr>
            </table>
        </div>

    </div>
</form>
</body>
</html>
